#include <Windows.h>
#include <iostream>

using namespace std;

VOID SetConsoleTextAttributes(HANDLE,WORD);

int main()
{
	HANDLE Stdin;
	WORD Attribute;
	char name[30];
	Stdin = GetStdHandle(STD_OUTPUT_HANDLE);
	SetConsoleTextAttributes(Stdin,4|BACKGROUND_BLUE);
	cout << "Hello everyone!" << endl;
	SetConsoleTextAttributes(Stdin,3|BACKGROUND_GREEN);
	cout << "Hava a nice Day" << endl;
	return 0;
}

VOID SetConsoleTextAttributes(HANDLE out,WORD n)
{
	if(!SetConsoleTextAttribute(out,n))
	{
		cout <<"SetConsoleTextAttribute fail :" << GetLastError();
	}
}